package com.itheima.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
public class UserInfo extends BaseRowModel implements Serializable {
    /**
     * 主键,自增
     */
    private Integer userId;

    /**
     * 用户姓名
     */
    @ExcelProperty(value = "姓名",index = 0)
    private String userName;

    /**
     * 年龄
     */
    @ExcelProperty(value = "年龄",index = 1)
    private Integer age;

    /**
     * 身份证号
     */
    @ExcelProperty(value = "身份证号",index = 2)
    private String idCard;

    /**
     * 性别 1:男 2:女
     */
    @ExcelProperty(value = "性别",index = 3)
    private Integer userSex;

    /**
     * 电话(作为登录账号)
     */
    @ExcelProperty(value = "联系方式",index = 4)
    private String userPhone;

    /**
     * 密码
     */
    @ExcelProperty(value = "密码",index = 5)
    private String passWord;

    /**
     * vip级别 1:专属VIP 2:超级VIP 3:普通VIP
     */
    private Integer vipType;

    private static final long serialVersionUID = 1L;

    public UserInfo(String userName,Integer age) {
        this.age = age;
        this.userName = userName;
    }
}